import request from '@/utils/request'

const orderApi = {
  list: '/api/v2/orders',
  createOrder21: '/api/v2.1/orders'
}

export function orderLists (paramter) {
  return request({
    url: orderApi.list,
    method: 'get',
    params: paramter
  })
}

export function createOrder21 (data) {
  return request({
    url: orderApi.createOrder21,
    method: 'post',
    data
  })
}
